package net.hn.hnms.biz.energy.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "electricity_settlement", schema = "nygl", catalog = "huaneng-general")
public class ElectricitySettlement extends BaseModel implements Serializable {
    @ApiModelProperty(value = "id")
    @TableField(value = "electricity_settle_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String electricitySettleId;

    @ApiModelProperty(value = "负荷地点ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String electricityPlaceId;

    @ApiModelProperty(value = "负荷名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String electricityPlaceName;



    @ApiModelProperty(value = "单价")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal electricityUnitPrice;

    @ApiModelProperty(value = "倍率")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal magnification;

    @ApiModelProperty(value = "差数")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal difference;

    @ApiModelProperty(value = "上月抄见")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal lastMeterValue;

    @ApiModelProperty(value = "本月抄见")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal meterValue;

    @ApiModelProperty(value = "表走电度(KWh)")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal meterElectricConsumption;

    @ApiModelProperty(value = "摊销系数")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal amortizationFactor;

    @ApiModelProperty(value = "结算电度")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal settleElectricConsumption;

    @ApiModelProperty(value = "结算金额")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal settleElectricAmount;

    @ApiModelProperty(value = "日期")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date settleDate;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String remark;


}
